function gett() {
    var timestamps =new Date().getTime();
    if (timestamps >= 1582992000000){
        timestamps = timestamps - 1582992000000;
        var month = parseInt(timestamps/2592000000);
        timestamps = timestamps - month*2592000000;
        var day = parseInt(timestamps/86400000);
        timestamps = timestamps - day*86400000;
        var hour = parseInt(timestamps/3600000);
        timestamps = timestamps - hour*3600000;
        var minute = parseInt(timestamps/60000);
        timestamps = timestamps - minute*60000;
        var second = parseInt(timestamps/1000);
        month = month + 29;
        if(minute == 0){
            minute = "00";
        }
        document.write("现在是黑公历");
        document.write(month+"集"+day+"日"+hour+"时"+minute+"分"+second+"秒");
    }else{
        timestamps = timestamps - 1566748800000;
        var day = parseInt(timestamps/86400000);
        timestamps = timestamps - day*86400000;
        var hour = parseInt(timestamps/3600000);
        timestamps = timestamps - hour*3600000;
        var minute = parseInt(timestamps/60000);
        timestamps = timestamps - minute*60000;
        var second = parseInt(timestamps/1000);
        if(minute == 0){
            minute = "00";
        }
        document.write("现在是黑公历28集");
        document.write(day+"日"+hour+"时"+minute+"分"+second+"秒");
    }
}
